﻿<%@ Page Language="C#" AutoEventWireup="true" Inherits="Admin_Module_ShowIcon" Codebehind="ShowIcon.aspx.cs" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>无标题页</title>
    <script type="text/javascript">
  
        function SaveIcon(img,strHidUrl)
        {
            var hidden = document.getElementById(strHidUrl);            
            
            var args = window.dialogArguments;
            args[0].src = img.src;
            args[1].value = hidden.value;
            window.close();
        }

        function Cancel()
        {
            var args = window.dialogArguments;
            args[0].src = "";
            args[1].value = "";
            window.close();
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
         <asp:DataList ID="dlIcon" runat="server" RepeatColumns="10" RepeatDirection="Horizontal" OnItemDataBound="dlIcon_ItemDataBound">
            <ItemTemplate>
                <asp:Image ID="imgUrl" runat="server" ImageUrl='<%# Eval("Url") %>' />
                <asp:HiddenField ID="hidUrl" runat="server" Value='<%# Eval("relativeUrl") %>' />
            </ItemTemplate>
            <SeparatorTemplate>
                <span style="width:3px;"></span>
            </SeparatorTemplate>
        </asp:DataList>
    </div>
    <div style="position:absolute; bottom:0px; right:0px; height:25px; line-height:25px; width:200px;">
        <input id="Button1" type="button" value="取消" style="margin-right:5px;" onclick="Cancel();" /><input id="Button2" type="button" onclick="window.close();"
            value="关闭" /></div>
    </form>
</body>
</html>
